package com.studypartner.tasks;

public class DailyTask {
	private int dayid;
	private Task task;
	private int dailyNum;
	private int currentNum;

	public DailyTask(int dayid, Task task, int dailyNum, int currentNum) {
		super();
		this.dayid = dayid;
		this.task = task;
		this.dailyNum = dailyNum;
		this.setCurrentNum(currentNum);
	}

	public int getDayid() {
		return dayid;
	}

	public String getTaskName() {
		return task.getTaskName();
	}

	public Task getTask() {
		return task;
	}

	public void setDayid(int dayid) {
		this.dayid = dayid;
	}

	public int getDailyNum() {
		return dailyNum;
	}

	public void setDailyNum(int dailyNum) {
		this.dailyNum = dailyNum;
	}

	public int getCurrentNum() {
		return currentNum;
	}

	public void plusCurrentNum() {
		currentNum+=task.getPlusNum();
	}

	public void minusCurrentNum() {
		currentNum-=task.getPlusNum();
	}

	public void setCurrentNum(int currentNum) {
		this.currentNum = currentNum;
	}

}
